package org.example;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfiguration {

    @Bean
    public PhoneService phoneService() {
        System.out.println("自动配置开始");
        return new HuaweiPhoneService();
    }
}
